package spec.ocl_mcg;

import graph.mcg.AlternativeNode;
import graph.mcg.CGNode;

import org.eclipse.ocl.ecore.IfExp;


public class IfExpNode extends TreeNode {
	private TreeNode node_condition;
	private TreeNode node_then;
	private TreeNode node_else;

	public IfExpNode(){}
	
	
	
	public TreeNode getNode_condition() {
		return node_condition;
	}

	public void setNode_condition(TreeNode nodeCondition) {
		node_condition = nodeCondition;
	}

	public TreeNode getNode_then() {
		return node_then;
	}

	public void setNode_then(TreeNode nodeThen) {
		node_then = nodeThen;
	}

	public TreeNode getNode_else() {
		return node_else;
	}

	public void setNode_else(TreeNode nodeElse) {
		node_else = nodeElse;
	}

	@Override
	public CGNode toCG() {
		// TODO Auto-generated method stub
		AlternativeNode cfgnode = new AlternativeNode(this);
		
		return cfgnode;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

}
